import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;


public class Blood {
 
 public  static final int WIDTH = 15;
 public  static final int HEIGHT = 15;
 private int x,y;
 private int step = 0;
 private TankClient tc = null;
 private boolean live = true;
 
 public boolean isLive() {
	return live;
 }
 public void setLive(boolean live) {
	this.live = live;
 }
 
	private int[][] pos = { { 350, 400 }, { 360, 400 }, { 375, 375 },
			{ 400, 300 }, { 360, 370 }, { 365, 390 }, { 340, 360 } };
  
 public Blood()
 {	
	 x = pos[0][0];
	 y = pos[0][0];
	 
 }
 public void draw(Graphics g)
 {
	 if (!live) {
		return;
	}
	 Color c = g.getColor();
	 g.setColor(Color.PINK);
	 g.fillRect(x, y, WIDTH, HEIGHT);
	 move();
 }
private void move() {
	step ++;
	if (step == pos.length) {
		step = 0;
	}
	x = pos[step][0];
	y = pos[step][1];
	
}
public Rectangle getRec() {
	return new Rectangle(x,y,WIDTH,HEIGHT);
}
}
